
/* 查找配置文件并进行相关的初始化 */
;(function(){
module.exports = function () {
	console.log("初始化配置文件")
	var fs = require("./_include/fs");
	var fs_list = [
		"server/_include/.errorSet/errorSet.json",
		"core/db/.db/data.cache.json",
		// "core/db/.db/index.cache.json"
	];
	fs_list.forEach(function (file_path) {
		try{
			fs.fs.readFileSync(file_path);
		}catch(e){
			// file_path = __dirname+file_path;
			var folder_path = file_path.split("/");
			folder_path.pop();
			folder_path = folder_path.join("/");
			fs.mkdir(folder_path);
			fs.file(file_path,"{}");
			console.log(file_path,folder_path,file_path);
		}
	});
	console.log("初始化配置文件完毕");
}
}());